home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Baseball - The Greatest Player Resource
/
Know Your Baseball - Greatest Player.iso
/
Baseball
/
Director
/
SHARED.CST
/
00023_Script_VideoControlBar
< prev
next >
Wrap
Text File
|
1998-09-21
|
2KB
|
86 lines
global gStopFlag, gClipOut,gControls
on Controlloop
global gSliderRes
set gSliderRes = gSliderRes+1
if gSliderRes > 6 then
automove
set gSliderRes = 0
end if
end
on automove
if gstopflag = 0 then
set move = the movietime of sprite 3*195/gClipout
set the loch of sprite 7 = ((the left of sprite 6+40)+move)
end if
end
on pointermove
set the movierate of sprite 3 = 0
set the blend of sprite 8 = 100
repeat while the stilldown and rollover(6) and the mouseh> the left of sprite 6+32 then
set the loch of sprite 7 = the mouseh
set percent = ((the loch of sprite 7-(the left of sprite 6+40)))*gClipOut/195
set the movietime of sprite 3 = percent
updatestage
end repeat
end
on StopStart
if the movierate of sprite 3 = 0 then
if the movietime of sprite 3 >= gClipOut-20 then set the movietime of sprite 3 = 0
set the movierate of sprite 3 =1
set the blend of sprite 8 to 0
set gstopflag = 0
else
set the movierate of sprite 3 =0
set the blend of sprite 8 to 100
set gstopflag = 1
end if
updatestage
end
on setControlBar
repeat with x = 6 to 8
puppetsprite x, true
end repeat
set the type of sprite 6 = 1
set the castnum of sprite 6 to the number of cast "BAR.BMP"
set the loch of sprite 6 = 151
set the locv of sprite 6 = 257
set the ink of sprite 6 = 32
set the blend of sprite 6 = 100
set the type of sprite 8 = 1
set the castnum of sprite 8 to the number of cast "GO.BMP"
set the loch of sprite 8 = 155-(216/2)+1
set the locv of sprite 8 = the locv of sprite 6 +1
set the ink of sprite 8 = 32
set the blend of sprite 8 = 0
mSetCommand(gControls),8,"StopStart"
set the type of sprite 7 = 1
set the castnum of sprite 7 to the number of cast "B2.BMP"
set the locv of sprite 7 = 257
set the loch of sprite 7 = (155-(240/2))+40
set the ink of sprite 7 = 32
set the blend of sprite 7 = 100
updatestage
end
on ToastVideoControls
repeat with x = 6 to 8
set the type of sprite x = 0
set the castnum of sprite x = 0
set the blend of sprite x = 0
end repeat
mSetCommand(gControls),8,EMPTY
end